<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<script type="text/javascript">
	$(function() {
		$('#roomModForm').form({
			url : '${ctx}/order/roomMod',
			onSubmit : function() {
				progressLoad();
				var isValid = $(this).form('validate');
				if (!isValid) {
					progressClose();
				}
				return isValid;
			},
			success : function(result) {
				progressClose();
				result = $.parseJSON(result);
				if (result.success) {
					parent.$.modalDialog.handler.dialog('close');
					var tab = $('#index_tabs').tabs('getSelected');  // get selected panel
					tab.panel('refresh');
				} else {
					parent.$.messager.alert('错误', result.msg, 'error');
				}
			}
		});
	});
</script>
<div id="roleGrantLayout" class="easyui-layout" data-options="fit:true,border:false">
	<div class="well well-small">
		<form id="roomModForm" method="post">
			<table>
				<tr>
					<td>会议室：</td>
					<td><input name="roomName" type="text" class="easyui-validatebox span2" data-options="required:true" value="${roomPageModel.roomName}">
					</td>
				</tr>
			</table>
			<input name="roomId" type="hidden" value="${roomPageModel.roomId}">
			<!--  -->
		</form>
	</div>
</div>